package com.mst.controller;

import org.springframework.web.bind.annotation.*;

@RequestMapping("/student")
//@Controller

@RestController
//==@Controller +@ResponseBody
public class StudentController {

    @PostMapping
    public String insert() {
        System.out.println("新增学生");
        return "insert";
    }

    @GetMapping
    public String detail() {
        System.out.println("学生详情");
        return "detail";
    }

    @DeleteMapping
    public String delete() {
        System.out.println("删除学生");
        return "delete";
    }

    @PutMapping
    public String update() {
        System.out.println("修改学生");
        return "update";
    }
}
